package com.snailhd.framework.i18n.nacos;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @author snailhd
 */
@Setter
@Getter
@Configuration
@ToString
@ConfigurationProperties(prefix="snailhd.i18n.nacos")
public class NacosConfig {


    private List<String> superLocales;

    @Value("${spring.cloud.nacos.config.server-addr}")
    private String serverAddr;

    @Value("${spring.cloud.nacos.config.namespace}")
    private String namespace;

    private String dataId;

    private String group="DEFAULT_GROUP";

    @Value("${spring.cloud.nacos.username:}")
    private String username;

    @Value("${spring.cloud.nacos.password:}")
    private String password;

}
